//必须带done回调 执行完成调用 vm, action, done
export default function hideSplitpane({ vm, action, done }) {
  if (action.extension.id.value.length > 0) {
    let self = vm.vuiComponents[action.extension.id.value[0]]?.self
    // console.log('隐藏面板', self)
    if (self) {
      //隐藏面板的配置
      let hideNum = 1
      action.extension.hidePanels && (hideNum = action.extension.hidePanels.value)
      //调用隐藏
      self.$hide(hideNum)
    }
  }
  done(null, {})
}
